package com.yty.order.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("nacos")
@RefreshScope
public class NacosController {

    @Value("${token.urlPatterns}")
    private String tokenStr;

    @GetMapping("getNacosParam")
    public String getNacosParam(){
        return "你从nacos中获取的token：" + tokenStr;
    }
}
